From c64f8c0280611e7db07987b3708ac1533df56a21 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Sat, 22 Oct 2005 21:32:37 +0000 Subject: [PATCH] Uninitialized size before xcalloc fixed --- coto.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coto.c b/coto.c index d3d363b08..1869aa2ed 100644 --- a/coto.c +++ b/coto.c @@ -361,6 +361,8 @@ coto_wpt_write(const waypoint *wpt) { notes = xstrdup(wpt->notes); } + + size = sizeof(*rec); if (notes != NULL) size += strlen(notes); rec = xcalloc(size, 1); -- 2.30.2